package org.jsola.hr.dto.permission;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

/**
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【公司成员】的参数")
@Data
public class RoleMemberAddDTO extends BaseDTO {

    private static final long serialVersionUID = 531955182490325364L;

    @ApiModelProperty(notes = "公司id", example = "1", required = true)
    @NotNull(message = "公司id不能为空")
    private String companyId;

    @ApiModelProperty(notes = "用户id数组", example = "[1,2]", required = true)
    @NotNull(message = "用户id不能为空")
    private String[] memberIds;

    @ApiModelProperty(notes = "角色id", example = "1", required = true)
    @NotNull(message = "角色id不能为空")
    private Long roleId;

}
